initpath=None
config=None
fields=None
db=None
cali=None
methodid=1
def is_float(a_string):
    try:
        float(a_string)
        return True
    except ValueError:
        return False
def to_float(a_string):
    try:
        r=float(a_string)
        return r
    except ValueError:
        return None
def myfloat(f):
    try:
        r = float(f)
    except ValueError:
        r = 0
    return r